import request from '@/utils/request'

// 查询用户注册列表
export function listIndex(query) {
  return request({
    url: '/device/index/list',
    method: 'get',
    params: query
  })
}

// 查询用户注册详细
export function getIndex(regId) {
  return request({
    url: '/device/index/' + regId,
    method: 'get'
  })
}

// 新增用户注册
export function addIndex(data) {
  return request({
    url: '/device/index',
    method: 'post',
    data: data
  })
}

// 修改用户注册
export function updateIndex(data) {
  return request({
    url: '/device/index',
    method: 'put',
    data: data
  })
}

// 删除用户注册
export function delIndex(regId) {
  return request({
    url: '/device/index/' + regId,
    method: 'delete'
  })
}
